#include<stdio.h>
#include<string.h>
void reverse(char* p) {
    if (!*p)return;
    int len = strlen(p);
    char t = *p;
    *p = p[len - 1];
    p[len - 1] = 0;
    reverse(p + 1);
    p[len - 1] = t;
}
int main() {
    char A[100010], B[100010];
    int C[100010];
    scanf("%s %s", A, B);
    reverse(A), reverse(B);
    int lena = strlen(A), lenb = strlen(B);
    int i, t, k;
    for (i = 0, t = 0, k = 0; i <= (lena > lenb ? lena : lenb); i++) {
        if (A[i] || B[i]) {
            t = A[i] + B[i] - '0' + k;
            if (A[i] && B[i])
                t -= '0';
        }
        else
            t = k;
        C[i] = t % 10;
        k = t / 10;
    }
    for (int j = --i; j >= 0; j--) {
        if (j == i && !C[j])
            continue;
        printf("%d", C[j]);
    }
    return 0;
}